var vm = new Vue({
    el: "#main",
    data: {
        table: {
            listLoading: false,
            tableHeight: "",
            tableData: []
        },
        page: {
            currentPage: 0,
            pageSize: 10,
            total: 0
        },
        searchData: {
            yearList: [
                {"value": "2015", "label": '2015'},
                {"value": "2016", "label": '2016'},
            ],
            monthList: [
                {"value": "april", "label": 'april'},
                {"value": "may", "label": 'may'}
            ],
            itemList: [
                {"value": "SDPM", "label": 'SDPM'},
            ],
            categoryList: [
                {"value": "K5", "label": 'K5'},
                {"value": "C4", "label": 'C4'},
            ]
        },
        fileList:
            [{
                name: 'food.jpeg',
                url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'
            }, {
                name: 'food2.jpeg',
                url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'
            }]
    },
    methods: {
        submitUpload() {
            this.$refs.upload.submit();
        },
        handleRemove(file, fileList) {
            console.log(file, fileList);
        },
        handlePreview(file) {
            console.log(file);
        }
    }
})
